SDEF
// -----------------------------------------------------------------------------
// MODEL DESCRIPTION:
// Slim, the basic mutant.  He carries a <insert weapon here>
//
// MODEL AUTHOR:
// Boon
//
/*SINED Monster_Slim_Normal (1 .5 0) (0 0 0) (0 0 0)
The base test version of Slim - with a shotgun
*/

// -----------------------------------------------------------------------------
// FILE DECLARATIONS
//
// Model Commands
path models/slim
origin -12 0 0
scale 1

// Base Model
slim_base.sbm

// Skins
//slim_02b.tga
//slim_damage_02b.tga
normal slim_boon.tga
damage slim_damage_boon.tga

// Normal Animations
idle1			slim_idle1.sam
idle2			slim_idle2.sam
twitch		slim_idle3.sam
alert			slim_stand.sam
run			slim_run.sam
walk			slim_walk.sam
fire			slim_shoot.sam

melee1		slim_jump_left.sam
melee2		slim_jump_right.sam

// Crouch Animations
crouch			slim_duck1.sam
crouch_idle			slim_duck_idle.sam
crouch_aim			slim_duck_idle.sam
crouch_fire			slim_duck_shoot.sam
crouch_pain			slim_duck_pain.sam
crouch_left_readyfire	slim_duck_left.sam
crouch_left_aim		slim_duck_shoot_left.sam
//crouch_left_postfire
crouch_left_fire		slim_duck_shoot_left.sam
crouch_right_readyfire	slim_duck_right.sam
//crouch_right_postfire
crouch_right_aim		slim_duck_shoot_right.sam
crouch_right_fire		slim_duck_shoot_right.sam
//slim_duck_shoot_up.sam
crouch_strafe_left	slim_duck_strafe_left.sam
crouch_strafe_right	slim_duck_strafe_right.sam
crouch_walk			slim_duck_walk.sam
crouch_reload		slim_duck_reload.sam

// Pain Location Based Animations
pain1			slim_pain_mid.sam

pain_head			slim_pain_head.sam
pain_torso_back		slim_pain_back.sam
pain_torso_upper		slim_pain_head.sam
pain_torso_lower		slim_pain_mid.sam
pain_leg_left_upper1	slim_pain_lleg1.sam
pain_leg_left_upper2	slim_pain_lleg2.sam
pain_leg_right_upper1	slim_pain_rleg1.sam
pain_leg_right_upper2	slim_pain_rleg2.sam
pain_leg_left_lower1	slim_pain_lleg1.sam
pain_leg_left_lower2	slim_pain_lleg2.sam
pain_leg_right_lower1	slim_pain_rleg1.sam
pain_leg_right_lower2	slim_pain_rleg2.sam
pain_arm_left_upper1	slim_pain_left1.sam
pain_arm_left_upper2	slim_pain_left2.sam
pain_arm_right_upper1	slim_pain_right1.sam
pain_arm_right_upper2	slim_pain_right2.sam
pain_arm_left_lower1	slim_pain_left1.sam
pain_arm_left_lower2	slim_pain_left2.sam
pain_arm_right_lower1	slim_pain_right1.sam
pain_arm_right_lower2	slim_pain_right2.sam

// Death Location Based Animations
death_head1		slim_death_banana_peel.sam
death_head2		slim_death_fall_down.sam
death1		slim_death_banana_peel.sam
death2		slim_death_blown_back.sam
death3		slim_death_fall_down.sam
death4		slim_death_fall_right.sam
death5		slim_death_stomach.sam
death_torso_lower	slim_death_stomach.sam

// Optional Animations
slim_shock.sam
//strafe_left		slim_jump_left.sam
//strafe_right	slim_jump_right.sam
step_left		slim_jump_left.sam
step_right		slim_jump_right.sam


// Id And Group Definitions
id   5 group head             flesh
group head damage 3.0
id  10 group torso_upper	fabric
group torso_upper damage 1.3
id  15 group torso_lower	fabric
group torso_lower damage 1.0
id  20 group torso_back	fabric
group torso_back damage 1.0
id  25 group leg_left_upper	fabric
group leg_left_upper damage 0.7
id  30 group leg_left_lower	metal
group leg_left_lower damage 0.4
id  35 group leg_right_upper	fabric
group leg_right_upper damage 0.7
id  40 group leg_right_lower	metal
group leg_right_lower damage 0.4
id  45 group arm_left_upper	flesh
group arm_left_upper  damage 0.8
id 50 group arm_right_upper 	flesh
group arm_right_upper  damage 0.8
id  55 group arm_left_lower	fabric
group arm_left_lower  damage 0.4
id 60 group arm_right_lower	fabric
group arm_right_lower damage 0.4
id 200 group arm_right_lower bone gun 5 -115 20 2015attach fabric



// -----------------------------------------------------------------------------
// INITIALIZATION SECTION
//
!init:
//
// SERVER Initialization Commands
//
// Class Setup
server classname actor
server script global/mthug.scr
server setsize "-22 -22 0" "22 22 75"
server crouchsize "-22 -22 0" "22 22 50"
server weapon Shotgun
server health 80
//server item FlakJacket 50
server item bulletpulse 5
server painthreshold 5
server meleerange 10
server shotsperattack 1
server turnspeed 75
server fov 150
server aim 0.5

// Sound Aliases
server aliascache  snd_idle1          "misc/null.wav"  1
server aliascache snd_idle2	 	"monsters/slim/idle1.wav" 1
server aliascache snd_idle3	 	"monsters/slim/idle2.wav" 1
//server aliascache snd_idle3	 	"monsters/slim/idle3.wav" 1
//server aliascache snd_idle4	 	"monsters/slim/idle4.wav" 1

server aliascache  snd_attacktaunt1    "monsters/slim/attk1.wav" 1
server aliascache  snd_attacktaunt2    "monsters/slim/attk2.wav" 1

server aliascache  snd_panic1    "monsters/slim/idle3.wav" 1
server aliascache  snd_panic2    "monsters/slim/idle4.wav" 1

server aliascache  snd_pursuit1    "monsters/slim/purs1.wav" 1

server aliascache  snd_sightenemy1    "monsters/slim/site1.wav" 1

server aliascache  snd_inmysights1    "monsters/slim/site1.wav" 1

server aliascache  snd_investigate1   "misc/null.wav" 1
server aliascache  snd_locate1        "monsters/slim/site1.wav" 1

server aliascache  snd_tauntdeath1    "monsters/slim/purs1.wav" 1

server aliascache snd_lostweapon "monsters/slim/idle4.wav" 1


//
// CLIENT Initialization Commands
//
// Sound Aliases
client aliascache  snd_pain1     "monsters/slim/pain1.wav" 1
client aliascache  snd_pain2     "monsters/slim/pain2.wav" 1
client aliascache  snd_pain3     "monsters/slim/pain3.wav" 1
client aliascache  snd_pain4     "monsters/slim/pain4.wav" 1

client aliascache  snd_death1    "monsters/slim/death1.wav" 1
client aliascache  snd_death2    "monsters/slim/death2.wav" 1

client aliascache  snd_kneefall1   "impact/bodyfall/sml1.wav" 1
client aliascache  snd_kneefall2   "impact/bodyfall/sml2.wav" 1
client aliascache  snd_partfall1   "impact/bodyfall/med1.wav" 1
client aliascache  snd_partfall2   "impact/bodyfall/med2.wav" 1
client aliascache  snd_partfall3   "impact/bodyfall/med3.wav" 1
client aliascache  snd_bodyfall1   "impact/bodyfall/lrg1.wav" 1
client aliascache  snd_bodyfall2   "impact/bodyfall/lrg2.wav" 1

// -----------------------------------------------------------------------------
// MAIN SECTION
//
!main:
// Special Commands
//server crouch last nextanim crouch_idle
//server uncrouch last nextanim idle
server crouch_aim first nextframe 0
server crouch_left_aim first nextframe 0
server crouch_right_aim first nextframe 0

// Normal Animations
server fire first fire
server crouch_fire first fire
server crouch_left_fire first fire
server crouch_right_fire first fire




// Pain Location Based Animations
server pain1 first painsound
client pain1 first randomsound snd_pain 1 2

server pain_head            first painsound
client pain_head            first randomsound snd_pain_head 1 2
server pain_torso_upper     first painsound
client pain_torso_upper     first randomsound snd_pain 1 2
server pain_torso_lower     first painsound
client pain_torso_lower     first randomsound snd_pain 1 2

server pain_arm_right_upper1 first painsound
client pain_arm_right_upper1 first randomsound snd_pain 1 2
server pain_arm_right_upper2 first painsound
client pain_arm_right_upper2 first randomsound snd_pain 1 2
server pain_arm_right_lower1 first painsound
client pain_arm_right_lower1 first randomsound snd_pain 1 2
server pain_arm_right_lower2 first painsound
client pain_arm_right_lower2 first randomsound snd_pain 1 2

server pain_arm_left_upper1  first painsound
client pain_arm_left_upper1  first randomsound snd_pain 1 2
server pain_arm_left_upper2  first painsound
client pain_arm_left_upper2  first randomsound snd_pain 1 2
server pain_arm_left_lower1  first painsound
client pain_arm_left_lower1  first randomsound snd_pain 1 2
server pain_arm_left_lower2  first painsound
client pain_arm_left_lower2  first randomsound snd_pain 1 2

server pain_leg_right_upper1 first painsound
client pain_leg_right_upper1 first randomsound snd_pain 1 2
server pain_leg_right_upper2 first painsound
client pain_leg_right_upper2 first randomsound snd_pain 1 2
server pain_leg_right_lower1 first painsound
client pain_leg_right_lower1 first randomsound snd_pain 1 2
server pain_leg_right_lower2 first painsound
client pain_leg_right_lower2 first randomsound snd_pain 1 2

server pain_leg_left_upper1  first painsound
client pain_leg_left_upper1  first randomsound snd_pain 1 2
server pain_leg_left_upper2  first painsound
client pain_leg_left_upper2  first randomsound snd_pain 1 2
server pain_leg_left_lower1  first painsound
client pain_leg_left_lower1  first randomsound snd_pain 1 2
server pain_leg_left_lower2  first painsound
client pain_leg_left_lower2  first randomsound snd_pain 1 2

// Death Location Based Animations
server death1 first deathsound
client death1 first randomsound snd_death 1 2
client death1  3 randomsound snd_bodyfall 1 4
server death2 first deathsound
client death2 first randomsound snd_death_long 1 2
client death2  4 randomsound snd_bodyfall 1 4
client death2  7 randomsound snd_kneefall 1 4
client death2 13 randomsound snd_partfall 0.5 4
server death3 first deathsound
client death3 first randomsound snd_death 1 2
client death3  6 randomsound snd_kneefall 1 4
client death3  9 randomsound snd_partfall 1 4
server death4 first deathsound
client death4 first randomsound snd_death 1 2
client death4  7 randomsound snd_bodyfall 1 4
client death4 14 randomsound snd_kneefall 1 4
client death4 17 randomsound snd_kneefall 1 4
server death5 first deathsound
client death5 first randomsound snd_death 1 2
client death5  7 randomsound snd_bodyfall 1 4
client death5 14 randomsound snd_kneefall 1 4
client death5 17 randomsound snd_kneefall 1 4

server death_torso_lower first deathsound
client death_torso_lower first randomsound snd_death 1 2
client death_torso_lower  7 randomsound snd_bodyfall 1 4
client death_torso_lower 14 randomsound snd_kneefall 1 4
client death_torso_lower 17 randomsound snd_kneefall 1 4

// Crouching Pain Location Based Animations
client crouch_pain first randomsound snd_pain 1 2
server crouch_pain first painsound

// Crouching Death Location Based Animations

